import axios from "axios"

let getlist=()=>axios.get("/hb/api/home/getIndexData");
let getfenlei = () => axios.get("/hb/api/category/getFcList?position=1");
let jingxuan = () => axios.get("/hb/api/goods/getTalentGoodsList");
let lunbo = () => axios.get("/hb/api/recommend/goodBookList");
let find1=()=>axios.get("/hb/api/goods/getNecessaryGoodsList?perpage=10&goods_type=1&goods_position=0")
let find2 = () => axios.get("/hb/api/leaderboard/homeLeaderboard");
let find3=(x:any)=>axios.get("/hb/api/goods/getTalentGoodsList?perpage=10&goods_type=1&goods_position="+x+"&from=index")
let setbook = (x:any) =>
  axios.get(
    "/hb/api/goods/getNecessaryGoodsList",{params:x}
  );
let listen = (x: any) => axios.get("/hb/api/goodsAudio/getList",{params:x});
let setbookxq = (x:any) => axios.get("/hb/api/goods/getGoodsDetail",{params:x});
let setbookdan = (x: any) =>
  axios.get("/hb/api/goods/getGoodsDetail",{params:x});
export {getlist,getfenlei,jingxuan,lunbo,find1,find2,find3,setbook,listen,setbookxq,setbookdan}